package io.renren.dao;

import io.renren.entity.ShopOrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.renren.entity.ShopOrderVOEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-10-11 15:53:31
 */
@Mapper
public interface ShopOrderDao extends BaseMapper<ShopOrderEntity> {
    List<ShopOrderEntity> getMyOrder(@Param("userid")int userid);

    ShopOrderVOEntity getOrderByOrderSn(@Param("ordersn")String ordersn);

    ShopOrderEntity getShopOrderByOrderSn(@Param("ordersn")String ordersn);

    List<ShopOrderEntity> getOrderList();
}
